<?php include ("inc/check_authen/check_authen.php");?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
 <link rel="stylesheet" href="admin_css/template_admin.css" type="text/css" />
 <link rel="stylesheet" href="admin_css/product.css" type="text/css" />
 <script type="text/javascript" src="js/page_function/faqs.js"></script>	
<title>Admin Page</title>
</head>

<body>
<div class="container">
	<?php include("inc/layout/header/header.php");?>
    <?php include("inc/layout/navigator/navigator.php");?>
  	<div class="content">
  
  	<div id="product_catMain">
  		<div class="button_topic"><center>ถาม-ตอบ </center></div> 
  			<br/>
  			<br/>
  			
  		
  		<table border="0" class="tb1">
  			<tr valign="top">
  				<td>คำถาม </td>
  				<td><textarea rows="5" cols="50" id="faqs_txtaTitle"></textarea>  </td> 				
  			</tr>
  			<tr valign="top">
  				<td>คำตอบ </td>
  				<td><textarea rows="5" cols="50" id="faqs_txtaAnswer"></textarea></td> 				
  			</tr>
  			<tr>
  				<td>&nbsp;</td>
  				<td>
  					<div id="tableAdd">	
  						<a href="#" onclick="addFaqs(null)"><img src="images/symbol/add_button.png" alt="" class="addBtn" /></a>
  					</div>
  					<div id="tableEdit" style="display:none;">
  						<a href="#" onclick="editFaqs()"><img src="images/symbol/edit_button.png" alt="" class="addBtn" /></a> <a href="#" onclick="backToAdd()" ><img src="images/symbol/cancel_button.png" alt="" /></a>
  					</div>  				 				
  				</td>
  				<td>&nbsp;</td>
  			</tr>
  		
  		</table>
  			<div style="border: solid 1px gray;"></div>	
  		 <table id="box-table-a">
			  <thead>
			    	<tr>
			    		<th scope="col" width="300" >คำถาม</th>
			            <th scope="col" width="300">คำตอบ</th>
			            <th scope="col" width="150" >ผู้แก้ไข/ใส่</th>
			            <th scope="col" width="150">เวลาที่ใส่</th>
			            <th scope="col" width="10">แก้ไข</th>
			            <th scope="col" width="10">ลบ</th>			    				 
			        </tr>
			    </thead>
			    <tbody>
			    	 <?php include("command/rawdata/getFaqsForEdit.php");?>     
    			</tbody>
</table>
    
    
     
      
      
     
   	</div>   
    <!--end admin_index-->
   </div>
	<!-- end .content --> 
	<?php include("inc/layout/footer/footer.php");?>
</div>
 <!-- end .container -->
 <form action="command/rawdata/updateFaqs.php" name="formSubmit" method="post">
	<input type="hidden" id="faqs_id" name="faqs_id" value=""></input>
	<input type="hidden" id="faqs_title" name="faqs_title" value=""></input>
	<input type="hidden" id="faqs_answer" name="faqs_answer" value=""></input>
</form>
</body>
</html>